package org.paradise.dms.services.impl;

import java.util.List;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.log4j.Logger;
import org.paradise.dms.dao.impl.ApartmentDAOImpl;
import org.paradise.dms.dao.impl.HallDAOImpl;
import org.paradise.dms.pojo.Apartment;
import org.paradise.dms.services.ApartmentService;
import org.paradise.dms.services.HallService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dheaven.framework.dao.DaoException;

@Service
public class HallServiceImpl implements HallService {
	private static Logger log = Logger.getLogger(HallServiceImpl.class);
	@Autowired
	private  HallDAOImpl HallDAOImpl;
	
	public List getAllPersonInHall(){
		return HallDAOImpl.getAllPersonInHall();
	}
	public String deleteHallItem(int hallId){
		if(0 == HallDAOImpl.deleteHallItem(hallId)){
			return "移出大厅失败";
		}else{
			return "success";
		}
	}
	public String intoHall(int studentid){
		return HallDAOImpl.intoHall(studentid);
	}
	
}
